package chapter10;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2019/2/19 14:35
 */
public class LinkedHashMapTest {
    public static void main(String[] args) {
        Map<String, Integer> seqMap = new LinkedHashMap<>();
        seqMap.put("c", 100);
        seqMap.put("d", 200);
        seqMap.put("a", 500);
        seqMap.put("d", 500);

        seqMap.forEach((k, v) -> {
            System.out.println(k + ":" + v);
        });
    }
}
